function init(){
	let au=new AjaxUtils;
	let param="blog.servlet?param=getAllBlog";
	au.ajaxRequest(param,(xhr)=>{
    		var json=JSON.parse(xhr.responseText);
    		let html=document.getElementById("tbodyinsert");
    		
    		for(let i=0;i<json.date.length;i++){
    			var tr1=document.createElement("tr");
    			var td1=document.createElement("td");
    			td1.className="headerimg";
    			var div1=document.createElement("div");
    			div1.className="mainleft";
    			var img1=document.createElement("img");
    			img1.src="img/ooopic_1506740330.png";
    			var td2=document.createElement("td");
    			td2.className="mainmessage";
    			var a1=document.createElement("a");
    			a1.href="blog.servlet?param=jumptoarticle&id="+json.date[i].blog_id;
    			var dl1=document.createElement("dl");
    			var dt1=document.createElement("dt");
    			var div2=document.createElement("div");
    			div2.className="document_title";
    			div2.innerHTML=json.date[i].blog_name;
    			var span1=document.createElement("span");
    			span1.className="document_title_date";
    			span1.innerHTML=json.date[i].blog_time;
    			var div3=document.createElement("div");
    			div3.className="document_type";
    			div3.innerHTML="test";
    			var dd1=document.createElement("dd");
    			dd1.innerHTML=json.date[i].blog_text;
    			var div4=document.createElement("div");
    			div4.style="float:left";
    			div4.className="document_praise document_add_praise";
    			var span2=document.createElement("span");
    			span2.className="document_praise_text";
    			span2.innerHTML="("+json.date[i].skr+"个赞)";
    			var div5=document.createElement("div");
    			div5.style="float:right";
    			div5.innerHTML="文章点击次数";
//    			//td1
    			div1.appendChild(img1);
    			td1.appendChild(div1);
    			div2.appendChild(span1);
    			dt1.appendChild(div2);
    			dt1.appendChild(div3);
    			dl1.appendChild(dt1);
    			dl1.appendChild(dd1);
    			a1.appendChild(dl1);
    			div4.appendChild(span2);
    			td2.appendChild(a1);
    			td2.appendChild(div4);
    			td2.appendChild(div5);
    			tr1.appendChild(td1);
    			tr1.appendChild(td2);
    			html.appendChild(tr1);
    			html.appendChild(tr1);
    			
    			}
    	});
 }
window.addEventListener("load",init,false);